<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <!-- hello comment -->
    <div>hello div</div>
    <p>hello p</p>
    <script>
      const boxDiv = document.body.children[0];
      const boxP = document.body.children[1];
      const text = document.body.childNodes[0];
      const comment = document.body.childNodes[1];
      console.log(comment.__proto__ === Comment.prototype);
      console.log(Comment.prototype.__proto__ === CharacterData.prototype);
      console.log(CharacterData.prototype.__proto__ === Node.prototype);
      console.log(Node.prototype.__proto__ === EventTarget.prototype);
      console.log(EventTarget.prototype.__proto__ === Object.prototype);
    </script>
  </body>
</html>
